// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'

//  // eslint-disable no-new
new Vue({
  el: '#app',
  template: '<App/>',
  components: { App }
});


//定义组件在这里暴露出去
import acMarquee from '@comp/acMarquee.vue'
let config = {
  comps:[
    {name: 'ac-marquee', comp: acMarquee}
  ],
  start: function(option){
    //注册组件
    this.comps.forEach(el => {
      Vue.component(el.name, el.comp)
    });
    Vue.config.productionTip = false
    //初始化Vue
    new Vue(option)
  }
}
// config.start(Vue);
export default config

